package com.hxzy.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * nationality
 * @author 
 */

@Data
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class Nationality implements Serializable {

    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long dictSort;

    /**
     * 国家
     */
    @NotBlank(message = "国家名称不能为空")
    private String dictLabel;

    @NotBlank(message = "英文简称不能为空")
    private String dictValue;

    private String dictType;

    private String isDefault;

    /**
     * 状态 0正常  1 停用
     */
    private String status;

    private String remark;

    /** 创建者 */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
}